<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:choose>
	<c:when test="${sessionScope.mvo!=null}">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$("input[name=withdrawalBtn]").click(function(){
				var id="${sessionScope.mvo.id}";
				var membertype = "${sessionScope.mvo.membertype}";
				location.href="withdrawalMember.do?id="+id+"&membertype="+membertype;			
		});
	});//ready
</script>
<style>
	#confirmContainer{
		height: 450px;
	}
	
	#withdrawalBtn{
			margin-left:40%;
			padding-top: 40px;
			padding-left: 5px;
			width: 45px;
			height: 20px;
	}
	#messsage{
			
			padding:5px;
			margin-left:6%;
			
			clear: both;
	}
	.content_header{
			padding-top: 50px;
			font-size:13px;
	}
	.dropout{
			padding-left: 10px;
			font-size:12px;
	}
	#content_table{
			padding-left: 10px;
	}
	#warning_content>tr:nth-child(even){
			background: #E4F7BA;
			font-size:13px;
	}
	#warning_content>tr:nth-child(odd){
			background: #E4E4E4;
			font-size:13px;
	}
	#warning_content>tr td:first-child{
			width:100px;
			height: 50px;
	}
	#warning_content>tr td:last-child{
			width:300px;
			height: 40px;
	}
</style>
		<div id="confirmContainer">
			<div id="messsage">
				<h3 class="content_header">사용하고 계신 아이디(<em>${sessionScope.mvo.id}</em>)는 탈퇴할 경우 재사용 및 복구가 불가능합니다.</h3>
					<p class="dropout">탈퇴한 아이디는 본인과 타인 모두 재사용 및 복구가 불가하오니 신중하게 선택하시기 바랍니다.</p>
					
				<!-- <h3 class="content_header">탈퇴 후 회원정보 및 개인형 서비스 이용기록은 모두 삭제됩니다.</h3>	 -->
				<h3 class="content_header">탈퇴 후 게시판형 서비스에 등록한 게시물은 삭제되지 않고 유지됩니다.</h3>
				<div id="content_table">
					<table>
						<tbody id="warning_content">
							<tr>
								<td>과외수업</td><td>등록한 수업 게시물 및 답글</td>
							</tr>
							<tr>
								<td>고객센터</td><td>문의사항 게시물</td>
							</tr>
						</tbody>
					</table>
				</div>		
			</div>
			<div id="withdrawalBtn">
				<input type="button" name="withdrawalBtn"value="회원 탈퇴하기">
			</div>
			
		</div>
	</c:when>
	<c:otherwise>
		<script type="text/javascript">
		var path ="withdrawal/withdrawal.mypage";
		location.href="loginResult.do?path="+path;
		</script>
	</c:otherwise>
</c:choose>
